x86: record xsave features in c->x86_capabilities
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Sep 2015 09:15:05 +0000 (11:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Sep 2015 09:15:05 +0000 (11:15 +0200)
commit6c421a12ea1ae6a7d249a013e9b7e17b2e603d66
tree434a08b5bab6b1d76e5dfaab05a27f0a52e1969b
parent11d49fffb2cad84403d807200be3085d653c854c
x86: record xsave features in c->x86_capabilities

Convert existing cpu_has_x??? to being functions of boot_cpu_data
(matching the prevailing style), and mask out unsupported features.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/traps.c
xen/arch/x86/xstate.c
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/xstate.h